package com.atguigu.test;

import com.alibaba.excel.EasyExcel;

import javax.xml.soap.SAAJResult;
import java.util.ArrayList;

public class write {
    public static void main(String[] args) {

        ArrayList<Object> lists = new ArrayList<>();
        for(int i=0;i<5;i++){
            userData data = new userData();
            data.setUid(i);
            data.setName("用户"+i);
            lists.add(data);
        }
        String filename="D:\\小资料\\笔记\\04.xlsx";
        EasyExcel.write(filename,userData.class).sheet("用户信息").doWrite(lists);
    }
}
